package com.demo.controller;

import com.demo.HelloServiceConfiguration;
import com.demo.HelloServiceProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gy
 * @date 2022/4/3
 */
@RestController
public class StarterTestController {

    @Autowired
    private HelloServiceConfiguration helloService;


    @RequestMapping("/name")
    public String getName() {
        return helloService.getName();
    }

    @RequestMapping("/hobby")
    public String getHobby() {
        return helloService.getHobby();
    }

}
